home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / hardware / cpu115 / mlib.bat < prev    next >
DOS Batch File  |  1995-02-27  |  1KB  |  53 lines

  1. @echo off
  2. echo mLib - TMi0SDGL(tm) Library Builder  Version 1.04 (c) 1994,95 by B-coolWare.
  3. echo:
  4. if .%1. == .. goto Help
  5. if .%model%.==.. goto setModel
  6. goto okModel
  7. :setModel
  8. if "%2" == "s" goto Small
  9. if "%2" == "S" goto Small
  10. if "%2" == "m" goto Med
  11. if "%2" == "M" goto Med
  12. if "%2" == "c" goto Comp
  13. if "%2" == "C" goto Comp
  14. if "%2" == "l" goto Large
  15. if "%2" == "L" goto Large
  16. if "%2" == "h" goto Huge
  17. if "%2" == "H" goto Huge
  18. goto Help
  19. :Small
  20. set model=__SMALL__
  21. goto okModel
  22. :Med
  23. set model=__MEDIUM__
  24. goto okModel
  25. :Comp
  26. set model=__COMPACT__
  27. goto okModel
  28. :Large
  29. set model=__LARGE__
  30. goto okModel
  31. :Huge
  32. set model=__HUGE__
  33. :okModel
  34. echo Building C/C++ TMi0SDGL(tm) Library...
  35. tasm /t/m/d%model% cpuspeed, speed_c
  36. tasm /t/m/d%model% cpu_hl, cpu_c
  37. tasm /t/m/d%model% p5info
  38. tasm /t/m/d%model% smm
  39. bcc -m%2 -c -Ii:\borlandc\include cputype.c
  40. REM tcc -m%2 -c -Id:\turboc\include cputype
  41. rem                              ^-- unREM this if you're TC user
  42. REM cl /A%2 /c /Ox /FPi /Id:\msc5\include cputype  
  43. rem                                           ^-- unRem this if you're MSC user
  44. if exist %1%2.lib del %1%2.lib
  45. tlib %1%2 /C /0 +speed_c.obj +cpu_c.obj +cputype.obj +p5info.obj +smm.obj
  46. echo mLib done.
  47. goto Quit
  48. :Help
  49. echo   usage: mlib libname s│c│m│l│h
  50. :Quit
  51. if %makeC% == ON goto Done
  52. set model=
  53. :Done